package com.jiuwu.note.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class UserDao {
	
	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	
	
	
	
	



	int i = 0;

	
	public int addUser(String name) {
		
		String sql = "INSERT INTO t_user (name) VALUES (?)";
		return jdbcTemplate.update(sql,new Object[] {name});
	}
	
	
}
